<template>
  <el-card>
    <el-row class="page-tools" type="flex">
      <el-col>
        <div class="before">
          <i class="el-icon-info" />
          <span>
            <slot name="before" />
          </span>
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>
<script>
export default {
  name: 'Index'
}
</script>

<style scoped lang="scss">
.page-tools {
  margin: 10px 0;

  .before {
    line-height: 34px;
    //display: flex;
    vertical-align: middle;

    align-items: center;

    span {
      font-size: 12px;
    }

    i {
      margin-right: 5px;
      color: #409eff;
    }

    display: inline-block;
    padding: 0 10px;
    border-radius: 3px;
    border: 1px solid rgba(145, 213, 255, 1);
    background: rgba(230, 247, 255, 1);
  }
}
</style>
